package com.cyq.day20.employee;

import javax.swing.*;

public class AddEmpolyeeFrame extends JFrame {
    public  AddEmpolyeeFrame(){
        setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
        setLayout(null);
        setTitle("新增员工");
        setBounds(200,100,700,700);
        JLabel label1=new JLabel();
        label1.setText("姓名");
        label1.setBounds(50,50,100,100);
        add(label1);
        JLabel label2=new JLabel();
        label2.setText("电话");
        label2.setBounds(50,150,100,100);
        add(label2);
        JLabel label3=new JLabel();
        label3.setText("学历");
        label3.setBounds(50,250,100,100);
        add(label3);
        JLabel label4=new JLabel();
        label4.setText("性别");
        label4.setBounds(50,350,100,100);
        add(label4);
        JLabel label5=new JLabel();
        label5.setText("部门");
        label5.setBounds(50,450,100,100);
        add(label5);
        JTextField textField1=new JTextField();
        textField1.setBounds(150,50,500,100);
        add(textField1);
        JTextField textField2=new JTextField();
        textField2.setBounds(150,150,500,100);
        add(textField2);
        //男单选按钮
        JRadioButton radioButton1=new JRadioButton();
        JRadioButton radioButton2=new JRadioButton();
        //学历下拉菜单
        JComboBox comboBox1=new JComboBox();
        comboBox1.addItem("本科");
        comboBox1.addItem("专科");
        comboBox1.addItem("研究生");
        comboBox1.setBounds(150,250,500,100);
        add(comboBox1);
        //部门下拉菜单
        JComboBox comboBox2=new JComboBox();
        comboBox2.addItem("销售部");
        comboBox2.addItem("开发部");
        comboBox2.addItem("人事部");
        comboBox2.setBounds(150,450,500,100);
        add(comboBox2);
        JButton button1=new JButton();
        JButton button2=new JButton();
        JButton button3=new JButton();


    }
}
